#include <./debug_print.h>

std::string print_tokens(std::string code)
  std::istringstream isstream;
  std::ostringstream osstream;
  isstream.str(code)

  quex::depythonize_c_lex qlex(&isstream)

  quex::Token  token

  while( token.type_id() != QUEX_TKN_TERMINATION )
    qlex.receive(&token)
    //osstream << token.get_text().str()
    osstream << token.type_id_name() << " "
    if( token.type_id() == QUEX_TKN_NEWLINE)
      osstream << "\n"
    //osstream << token.get_text().c_str()
    //osstream << ")"

  osstream.flush()

  return osstream.str()

//--helper--
